package com.yunyao.common.constant.enums;

import lombok.Getter;

/**
 * @author xingjishuai
 * @date 2024-07-29
 */
@Getter
public enum ProjectSettlementStatusEnum {
    /**
     * formatter: function(e, t) {
     * if (0 == e.status && 0 == e.auditStatus)
     * return "待核对";
     * if (1 == e.status || 2 == e.status || 0 == e.status) {
     * if (0 == e.auditStatus)
     * return "待提交";
     * if (1 == e.auditStatus)
     * return "审核中";
     * if (2 == e.auditStatus)
     * return "待提交";
     * if (3 == e.auditStatus)
     * return "审核驳回";
     * if (4 == e.auditStatus)
     * return "撤回"
     * }
     * return 3 == e.status ? "待供应商确认" : 4 == e.status ? "供应商确认驳回" : 5 == e.status ? "待云采确认" : 6
     * == e.status ? "回款中" + (e.outTime ? "-延时" : "") : 7 == e.status ? "核销驳回" : 8 == e.status ?
     * "核销通过" : 9 == e.status ? "回款认领完成待核销" : 10 == e.status ? "回款认领完成核销驳回" : 11 == e.status ?
     * "回款完成" : 12 == e.status ? "待回款" + (.outTime ? "-延时" : "") : 13 == e.status ? "回款延迟" : void 0
     * }
     */
    TO_BE_CHECKED(0, "待核对"),
    CHECKED_OUT(1, "已核对"),
    CHECKED_OUT1(2, "已核对"),
    CONFIRMED_BY_SUPPLIER(3, "待供应商确认"),
    SUPPLIER_CONFIRMATION_REJECTION(4, "供应商确认驳回"),
    CONFIRMED_BY_CLOUD_ACQUISITION(5, "待云采确认"),
    IN_PAYMENT_COLLECTION(6, "回款中"),
    REJECTION_OF_WRITE_OFF(7, "核销驳回"),
    APPROVAL_OF_WRITE_OFF(8, "核销通过"),
    PAYMENT_COLLECTION_CLAIM_IS_COMPLETED_TO_BE_WRITTEN_OFF(9, "回款认领完成待核销"),
    THE_CLAIM_OF_PAYMENT_COLLECTION_HAS_BEEN_VERIFIED_AND_REJECTED(10, "回款认领完成核销驳回"),
    COMPLETION_OF_PAYMENT_COLLECTION(10, "回款完成"),
    PAYMENT_TO_BE_COLLECTED(12, "待回款"),
    DELAY_IN_PAYMENT_COLLECTION(13, "回款延迟");
    private final int type;
    private final String desc;

    ProjectSettlementStatusEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

}
